<form name="service.$forms.res" novalidate>
    <div class="row">
        <div class="col-md-8">
            <div class="couple-form-group">
                <div class="couple-form-info">
                    <div class="form-group" ng-class="{'has-error': (service.$forms.res.podCpu.$touched || service.$forms.res.$submitted )
                         && (service.$forms.res.podCpu.$error.number || service.$forms.res.podCpu.$error.min||service.$forms.res.podCpu.$error.required)}">
                        <label for="podCpu">CPU</label>
                        <div class="input-group">
                            <input type="number" ng-model="service.podCpu" class="form-control" ng-min="::res.cpuReq"
                                   id="podCpu" name="podCpu" placeholder="请输入CPU核数" required/>
                            <span class="input-group-addon">核</span>
                        </div>
                        <div class="text-danger" ng-show="(service.$forms.res.podCpu.$touched || service.$forms.res.$submitted )
                         && (service.$forms.res.podCpu.$error.number || service.$forms.res.podCpu.$error.min)">请输入有效的CPU核数({{::res.cpuReq}} 以上)
                        </div>
                    </div>
                    <div class="form-group text-only">&nbsp;</div>
                    <div class="form-group" ng-class="{'has-error': (service.$forms.res.podMem.$touched || service.$forms.res.$submitted )
                         && (service.$forms.res.podMem.$error.number || service.$forms.res.podMem.$error.min||service.$forms.res.podMem.$error.required)}">
                        <label for="podMem">MEM</label>
                        <div class="input-group">
                            <input type="number" ng-model="service.podMem" id="podMem" ng-min="::res.memReq"
                                   class="form-control" name="podMem" placeholder="请输入内存值" required/>
                            <span class="input-group-addon">{{::res.memUnit}}</span>
                        </div>
                        <div class="text-danger" ng-show="(service.$forms.res.podMem.$touched || service.$forms.res.$submitted)
                                    && (service.$forms.res.podMem.$error.number || service.$forms.res.podMem.$error.min)">请输入有效的内存值({{::res.memReq}} 以上)
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="form-tooltip-group"><i class="fa fa-question"></i>指定服务内Pod 的资源限制</div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-8">
            <div class="form-group">
                <label>宿主机组</label>
                <ui-select multiple ng-model="service.groups" name="groups" close-on-select="false">
                    <ui-select-match placeholder="请选择宿主机组">{{$item.groupCode}}</ui-select-match>
                    <ui-select-choices repeat="opt.groupCode as opt in service.groupList | filter: $select.search">
                        <div ng-bind-html="::opt.groupCode"></div>
                    </ui-select-choices>
                </ui-select>
            </div>
        </div>
        <div class="col-md-4">
            <div class="form-tooltip-group"><i class="fa fa-question"></i>限制服务可调度到哪些宿主机组</div>
        </div>
    </div>
</form>